﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using AutoTest.Domain.Enums;

namespace AutoTest.Business.Model
{
    /// <summary>
    /// 三方平台用户信息
    /// </summary>
    public class OpenUserInfoModel
    {
        /// <summary>
        /// 微信UnionID
        /// </summary>
        public string UnionId { get; set; } = string.Empty;

        /// <summary>
        /// OpenId
        /// </summary>
        public string OpenId { get; set; } = string.Empty;

        /// <summary>
        /// 昵称
        /// </summary>
        public string NickName { get; set; } = string.Empty;

        /// <summary>
        /// 用户的性别，值为1时是男性，值为2时是女性，值为0时是未知
        /// </summary>
        public EnumSex Sex { get; set; } = EnumSex.Unknown;

        /// <summary>
        /// 省
        /// </summary>
        public string Province { get; set; } = string.Empty;

        /// <summary>
        /// 城市
        /// </summary>
        public string City { get; set; } = string.Empty;

        /// <summary>
        /// 国家
        /// </summary>
        public string Country { get; set; } = string.Empty;

        /// <summary>
        /// 头像
        /// </summary>
        public string HeadImgUrl { get; set; } = string.Empty;

        /// <summary>
        /// 邀请码
        /// </summary>
        public string InviteCode { get; set; } = string.Empty;

        /// <summary>
        /// 是否是新用户
        /// </summary>
        public bool IsNewUser { get; set; } = false;

        /// <summary>
        /// 跳转地址
        /// </summary>
        public string RetUrl { get; set; } = string.Empty;

        /// <summary>
        /// 平台
        /// </summary>
        public EnumPlatform Platform { get; set; } = EnumPlatform.Wechat;
        /// <summary>
        /// 知否关注公众号
        /// </summary>
        public bool IsSubscrible { get; set; } = false;
    }
}
